package com.woniuxy.oa.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.woniuxy.oa.entity.Employee;
import com.woniuxy.oa.mapper.EmployeeMapper;
import com.woniuxy.oa.service.EmployeeService;
@Service("employeeService") 
public class EmployeeServiceImpl implements EmployeeService{
	@Autowired
	EmployeeMapper employeeMapper;

	@Override
	public Employee getEmployeeById(Integer id) {
		return employeeMapper.selectEmployeeById(id);
	}

	@Override
	public Employee getEmployeeByUsername(String username) {
		return employeeMapper.selectEmployeeByUsername(username);
	}


}
